package com.yuwei.mine.adapter

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.yuwei.database.entity.FavVideoEntity
import com.yuwei.image.glide.GlideImageLoader
import com.yuwei.mine.R

class FavVideoAdapter: BaseQuickAdapter<FavVideoEntity, BaseViewHolder>(
    R.layout.item_fav_video
) {
    override fun convert(holder: BaseViewHolder, item: FavVideoEntity) {
        val image = holder.getView<ImageView>(R.id.video_image)
        GlideImageLoader.loadImage(context,image,item.video_main_image)
    }

}